using System;
using System.Collections.Generic;
using System.Text;
using iTunesLib;
using Rapier.Kodachi.Shared;
using System.Drawing;

namespace Rapier.Kodachi.iTunes.Actions
{
    class VolumeMute : iTunesActionBase
    {
        #region Constructor
        public VolumeMute(Plugin plugin)
            : base(plugin, "Rapier.Kodachi.iTunes.Mute", "Mute / UnMute", "Mute / UnMute the volume.")
        {
            GetImage = delegate() { return volumeMuteImage; };
        }
        #endregion

        #region Action Members
        public override void Execute(Item[] directItems, Item[] indirectItems)
        {
            if (base.IsItunesRunning())
                itunes.Mute = !itunes.Mute;
        }
        #endregion
    }
}
